#pragma once

class CAppIniConfigAdapter
{
    CString mIniFileName;
public:
	CAppIniConfigAdapter(void);
	~CAppIniConfigAdapter(void);
	BOOL Init(LPCTSTR strFileName);
	BOOL WriteString(LPCTSTR lpSectionName, LPCTSTR lpKeyName, LPCTSTR lpStringNmae);
	BOOL WriteInteger(LPCTSTR lpSectionName, LPCTSTR lpKeyName, int nIntValue);
	CString GetString(LPCTSTR lpSectionName, LPCTSTR lpKeyName);
	int GetInteger(LPCTSTR lpSectionName, LPCTSTR lpKeyName);

	CString GetInjectDllName(void);
	BOOL WriteUsername(CString str);
	CString GetUsername(void);
	BOOL WritePassword(CString str);
	CString GetPassword(void);
	
	BOOL WriteUsernameWOW(CString str);
	CString GetUsernameWOW(void);
	BOOL WritePasswordWOW(CString str);
	CString GetPasswordWOW(void);

	BOOL WriteExePath(CString str);
	CString GetExePath(void);
	BOOL WriteWowServerType(CString str);
	CString GetWowServerType(void);
	BOOL WriteVersion(CString str);
	CString GetVersion(void);

	BOOL SetSaveUsername(BOOL b);
	BOOL GetSaveUsername(void);

	BOOL SetSavePWD(BOOL b);
	BOOL GetSavePWD(void);

	BOOL SetSaveUsernameWOW(BOOL b);
	BOOL GetSaveUsernameWOW(void);

	BOOL SetSavePWDWOW(BOOL b);
	BOOL GetSavePWDWOW(void);

	BOOL SetAutoUpdate(BOOL b);
	BOOL GetAutoUpdate(void);

	BOOL WriteWowVersionType(CString str);
	CString GetWowVersionType(void);
};
